<!--************************************************************ -->
<!--* 文件创建日期：2010                                  * -->
<!--* 功能描述：左侧菜单页               			               * -->
<!--* 文件修改日期：			                                   * -->
<!--************************************************************ -->
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.infomanage.util.Consts"%>
<%@page import="com.infomanage.po.User"%>
<%@page import="com.infomanage.enums.*"%>
<%  
	User user = (User)session.getAttribute(Consts.LOGINED_USER);
%>
<html>
<head>
	<title>矿山救护远程调度管理指挥系统</title>
	<link rel="stylesheet" href="css/menu.css">
	<script type="text/javascript">
		function init() {
			// 显示第一个菜单项，其余的都隐藏
			showMenuItem("menuItemContent0");
		}

		function showMenuItem(id) {
			var count = 5;
			var menuItemContentObj = null;
			for(var i = 0; i < count; i++) {
				menuItemContentObj = document.getElementById("menuItemContent" + i);
				menuItemContentObj.parentNode.parentNode.style.display = "none";
			}
			menuItemContentObj = document.getElementById(id);
			menuItemContentObj.parentNode.parentNode.style.display = "";
		}
		
		function clickLink(obj, url) {
			var linkObjs = document.getElementsByTagName("a");
			for(var i = 0; i < linkObjs.length; i++) {
				if(linkObjs[i].className != "") continue;
				linkObjs[i].style.fontWeight = "normal";
				linkObjs[i].style.color = "#0060c0";
			}
			obj.style.fontWeight = "bold";
			obj.style.color = "#F87D19";
			obj.href = url;
		}
	</script>
</head>
<BODY onload="init();" bottommargin="0" leftmargin="0" rightmargin="0" topmargin="0">
<div class="menu">
	<table background="img/bg_menu_mid.gif" border="0" cellpadding="0" cellspacing="0" width="213px" height="100%" style="table-layout: fixed;">
		<!-- 顶部 -->
		<tr height="47">
			<td valign="top">
				<div class="menu_top">
				</div>
			</td>
		</tr>
		
		<!-- 菜单项 -->
		<tr>
			<td valign="top" align="center" height="100%">
				<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%" class="menuTable">
					<!-- 信息管理系统 -->
					<tr height="50px">
						<td>
							<div class="menu_item" onclick="showMenuItem('menuItemContent0');">
								<a href="#" class="a1">信息管理系统</a>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div class="menu_item_content" id="menuItemContent0">
								<div>
									<a href="#" onclick="clickLink(this, 'infomanage/worklog/main.jsp');" target="mainPage">工作日志</a>
								</div>
								<div>
									<a href="#" onclick="clickLink(this, 'infomanage/plan/main.jsp');" target="mainPage">计划总结</a>
								</div>
								<div>
									<a href="#" onclick="clickLink(this, 'infomanage/study/main.jsp');" target="mainPage">学习考核</a>
								</div>
								<div>
									<a href="#" onclick="clickLink(this, 'infomanage/equmgmt/main.jsp');" target="mainPage">装备管理</a>
								</div>
								<div>
									<a href="#" onclick="clickLink(this, 'infomanage/techmgmt/main.jsp');" target="mainPage">技术管理</a>
								</div>
								<div>
									<a href="#" onclick="clickLink(this, 'infomanage/emergency/main.jsp');" target="mainPage">应急管理</a>
								</div>
								<div>
									<a href="#" onclick="clickLink(this, 'infomanage/rule/main.jsp');" target="mainPage">规章制度</a>
								</div>
								<div>
									<a href="#" onclick="clickLink(this, 'infomanage/hr/main.jsp');" target="mainPage">人员管理</a>
								</div>
							</div>
						</td>
					</tr>
					
					<!-- 地理信息系统 -->
					<tr height="50px">
						<td>
							<div class="menu_item" onclick="showMenuItem('menuItemContent1');">
								<a href="#" class="a2">决策支持</a>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div class="menu_item_content" id="menuItemContent1">
								<div>
									<a href="#" onclick="clickLink(this, 'dss/ecs/main.jsp');" target="mainPage">专家咨询</a>
								</div>
								<div>
									<a href="#" onclick="clickLink(this, 'dss/rt/main.jsp');" target="mainPage">救援技术</a>
								</div>
								<div>
									<a href="#" onclick="clickLink(this, 'dss/case/main.jsp');" target="mainPage">事故案例</a>
								</div>
								<div>
									<a href="#" onclick="clickLink(this, 'dss/preplan/main.jsp');" target="mainPage">远程调度预案管理</a>
								</div>
								<div>
									<a href="#" onclick="clickLink(this, 'dss/re/main.jsp');" target="mainPage">救援路线</a>
								</div>
							</div>
						</td>
					</tr>
					
					<!-- 应急救援系统 -->
					<tr height="50px">
						<td>
							<div class="menu_item" onclick="showMenuItem('menuItemContent2');">
								<a href="#" class="a3">远程环境监测</a>
							</div>
						</td>
					</tr>
					<tr>
						<td>
						<div class="menu_item_content" id="menuItemContent2">
							<div>
								<a href="rescue/dealaccident/main.jsp" target="mainPage">实时监控</a>
							</div>
							<div>
								<a href="rescue/planmanage/main.jsp" target="mainPage">统计分析</a>
							</div>
							<div>
								<a href="rescue/case/main.jsp" target="mainPage">对比分析</a>
							</div>
							<div>
								<a href="rescue/case/main.jsp" target="mainPage">预警分析</a>
							</div>
						</div>
						</td>
					</tr>
					
					<!-- 短信平台 -->
					<tr height="50px">
						<td>
							<div class="menu_item" onclick="showMenuItem('menuItemContent3');">
								<a href="#" class="a4">应急救援系统</a>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div class="menu_item_content" id="menuItemContent3">
								<div>
									<a href="rescue/dealaccident/main.jsp" target="mainPage">事故处理</a>
								</div>
								<div>
									<a href="rescue/planmanage/main.jsp" target="mainPage">预案管理</a>
								</div>
								<div>
									<a href="rescue/case/main.jsp" target="mainPage">案例管理</a>
								</div>
							</div>
						</td>
					</tr>
					
					<!-- 系统维护 -->
					<tr height="50px">
						<td>
							<div class="menu_item" onclick="showMenuItem('menuItemContent4');">
								<a href="#" class="a5">系统维护</a>
							</div>
						</td>
					</tr>
					<tr>
						<td>
						<div class="menu_item_content" id="menuItemContent4">
							<%
								if(user != null && user.getRoleId() == RoleType.SYSADMIN.value()){
							
							%>
							<div>
								<a href="#" onclick="clickLink(this, 'infomanage/syscfg/main.jsp');" target="mainPage">用户管理</a>
							</div>
							<div>
								<a href="#" onclick="clickLink(this, 'infomanage/syscfg/departmanage.jsp');" target="mainPage">单位管理</a>
							</div>
							<div>
								<a href="#" onclick="clickLink(this, 'infomanage/syscfg/departmanage.jsp');" target="mainPage">角色管理</a>
							</div>
							<div>
								<a href="#" onclick="clickLink(this, 'infomanage/msg/main.jsp');" target="mainPage">系统通知</a>
							</div>
							<div>
								<a href="#" onclick="clickLink(this, 'infomanage/syscfg/depart_index.jsp');" target="mainPage">单位管理（新）</a>
							</div>
					
						</div>
						</td>
					</tr>
							<%
								}
							%>
							
					<!-- 应急救援决策支持 -->
					<tr height="50px">
						<td>
							<div class="menu_item" onclick="showMenuItem('menuItemContent5');">
								<a href="#" class="a5">救援决策支持</a>
							</div>
						</td>
					</tr>
					<tr>
						<td>
						<div class="menu_item_content" id="menuItemContent5">
							<div>
								<a href="#" onclick="clickLink(this, 'dss/ecs/main.jsp');" target="mainPage">专家咨询</a>
							</div>
							<div>
								<a href="#" onclick="clickLink(this, 'infomanage/syscfg/departmanage.jsp');" target="mainPage">救援技术</a>
							</div>
							<div>
								<a href="#" onclick="clickLink(this, 'infomanage/syscfg/departmanage.jsp');" target="mainPage">事故案例管理</a>
							</div>
							<div>
								<a href="#" onclick="clickLink(this, 'dss/preplan/main.jsp');" target="mainPage">远程调度预案管理</a>
							</div>
							<div>
								<a href="#" onclick="clickLink(this, 'infomanage/syscfg/depart_index.jsp');" target="mainPage">救援模拟演练</a>
							</div>
						</div>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<!-- 底部 -->
		<tr height="41">
			<td valign="top">
				<div class="menu_bottom">
				</div>
			</td>
		</tr>		
	</table>
</div>
</BODY>
</html>

